<div id="form"></div>
<script>
var frm=$("#form").ajajform({
	header: null,
	footerButtons: [
		{value: "Создать",url: "{{action}}?mode=edit"}
	]
});
var grid=frm.ajajform("insertWidget",null,null,{
	type: "grid",
	title: "Список производителей в каталоге продукции",
	name: "market_vendor",
	sort: {
		url: "{{action}}",
		params: {mode: "reorder", ajaj: 1}
	},
	rowClasses: [{
		name:"item",
		sortable: true,
		columns: [
			{"name":"name","label":"Название","type":"text","url":"{{action}}?mode=edit&id=",width: 600},
			{"name":"enabled","label":"Вкл","type":"checkbox"}]
	}],
	rows: {{JSON_gridrower("name,enabled"):items}}
});
</script>
